package io.yunho.webflux.client.interfaces;

import io.yunho.webflux.client.domain.MethodInfo;
import io.yunho.webflux.client.domain.ServerInfo;

/**
 * @author: yunho
 * @date: 2021/5/14 16:21
 * @description:Rest 请求调用
 */
public interface RestHandler {
    /**
     * 初始化服务器信息
     * @param serverInfo
     */
    void init(ServerInfo serverInfo);

    /**
     * 调用rest接口，返回接口
     * @param methodInfo
     * @return
     */
    Object invokeRest(MethodInfo methodInfo);
}
